package com.ftg.learn.framework.springframework.core.official.annotation;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.DependsOn;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author lijiaxin
 * @version 1.0
 * @date 2023/9/14 14:14
 */
@Data
@Component
@Scope("prototype")
public class Banana {

    @PostConstruct
    public void test1(){
        System.out.println("在构造方法 以后执行");
    }

    @Value(value = "中国")
    private String address;
}
